<!doctype html>
<html>
	<head>
		<meta charset="utf-8"/>
		<title>Demo</title>
	</head>
	<body>
		<script>
			var reg = /\W/
			// var reg = new RegExp('\\d')
			alert(reg.test("%"))
		</script>
		<script src="demo.js"></script>
	</body>
</html>
